﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Hotel.Model.Discount
{
    [Table("T_Discount")]
    public class T_Discount
    {
        /// <summary>
        /// 优惠券id
        /// </summary>
        [Key]
        public int D_Id { get; set; }
        /// <summary>
        /// 优惠券类型
        /// </summary>
        public int DT_Id { get; set; }
        /// <summary>
        /// 优惠券的标题
        /// </summary>
        public string D_Title { get; set; }

        /// <summary>
        /// 优惠券的颜色
        /// </summary>
        public string D_Color { get; set; }
        /// <summary>
        /// 优惠券的数量
        /// </summary>
        public int D_Number { get; set; }

        /// <summary>
        /// 优惠券限令个数
        /// </summary>
        public int D_Quota { get; set; }
        /// <summary>
        /// 消费金额
        /// </summary>
        public decimal D_Money { get; set; }

        /// <summary>
        /// 减免金额
        /// </summary>
        public decimal D_Reduction { get; set; } = 0;
        /// <summary>
        /// 折扣
        /// </summary>
        public decimal D_Discount { get; set; } = 10;
        /// <summary>
        /// 适用门店
        /// </summary>
        public int StoreId { get; set; }

        /// <summary>
        /// 开始时间
        /// </summary>
        public DateTime D_BeginTime { get; set; }
        /// <summary>
        /// 结束时间
        /// </summary>
        public DateTime D_EenTime { get; set; }
        /// <summary>
        /// 是否启用
        /// </summary>
        public int D_State { get; set; }

        /// <summary>
        /// 是否删除
        /// </summary>
        public bool IsDelte { get; set; } = false;
    }
}
